Skip to content

Commit

Permalink
[example-text-classification][DEV]: adapt to latest example framework;
Browse files Browse the repository at this point in the history
  • Loading branch information
dailystudio committed Aug 11, 2020
1 parent 0053fc3 commit 6261303
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,16 @@ class ExampleActivity : AbsChatActivity<Map<String, TextClassificationClient.Res
}
}

override fun createSettingsFragment(): AbsSettingsDialogFragment? {
TODO("Not yet implemented")
override fun getExampleName(): CharSequence? {
return getString(R.string.app_name)
}

override fun getExampleIconResource(): Int {
return R.drawable.about_icon
}

override fun getExampleDesc(): CharSequence? {
return getString(R.string.app_desc)
}

}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions example-text-classification/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<resources>
<string name="app_name">Text Classification</string>
<string name="app_desc">Categorize free text into predefined groups. Potential applications include abusive content moderation, tone detection and more.</string>

<string name="chat_text_question">How do you feel about that movie?</string>

<string name="prompt_positive">Great, you like it!</string>
<string name="prompt_native">Hmm, it seems that you don\'t like it.</string>
<string name="prompt_default">May I have your pardon?</string>

</resources>

0 comments on commit 6261303

Please sign in to comment.