Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,14 +22,15 @@ link_dict = {
|
|
| 22 |
"audio classification": "https://huggingface.co/tasks/audio-classification",
|
| 23 |
"automatic speech recognition": "https://huggingface.co/tasks/automatic-speech-recognition",
|
| 24 |
"fill-mask":"https://huggingface.co/tasks/fill-mask",
|
|
|
|
|
|
|
| 25 |
"question answering":"https://huggingface.co/tasks/question-answering",
|
| 26 |
"text-to-speech":"https://huggingface.co/tasks/text-to-speech",
|
| 27 |
"sentence similarity": "https://huggingface.co/tasks/sentence-similarity",
|
| 28 |
"summarization":"https://huggingface.co/tasks/summarization",
|
| 29 |
"text generation": "https://huggingface.co/tasks/text-generation",
|
| 30 |
"translation": "https://huggingface.co/tasks/translation",
|
| 31 |
-
"
|
| 32 |
-
"image segmentation": "https://huggingface.co/tasks/image-segmentation",
|
| 33 |
"object detection": "https://huggingface.co/tasks/object-detection"}
|
| 34 |
|
| 35 |
|
|
@@ -75,7 +76,7 @@ if input:
|
|
| 75 |
|
| 76 |
with placeholder.container():
|
| 77 |
last_message = message_history[-1]
|
| 78 |
-
if last_message
|
| 79 |
message(last_message["text"], last_message["is_user"])
|
| 80 |
|
| 81 |
|
|
|
|
| 22 |
"audio classification": "https://huggingface.co/tasks/audio-classification",
|
| 23 |
"automatic speech recognition": "https://huggingface.co/tasks/automatic-speech-recognition",
|
| 24 |
"fill-mask":"https://huggingface.co/tasks/fill-mask",
|
| 25 |
+
"image classification": "https://huggingface.co/tasks/image-classification",
|
| 26 |
+
"image segmentation": "https://huggingface.co/tasks/image-segmentation",
|
| 27 |
"question answering":"https://huggingface.co/tasks/question-answering",
|
| 28 |
"text-to-speech":"https://huggingface.co/tasks/text-to-speech",
|
| 29 |
"sentence similarity": "https://huggingface.co/tasks/sentence-similarity",
|
| 30 |
"summarization":"https://huggingface.co/tasks/summarization",
|
| 31 |
"text generation": "https://huggingface.co/tasks/text-generation",
|
| 32 |
"translation": "https://huggingface.co/tasks/translation",
|
| 33 |
+
"token classification": "https://huggingface.co/tasks/token-classification",
|
|
|
|
| 34 |
"object detection": "https://huggingface.co/tasks/object-detection"}
|
| 35 |
|
| 36 |
|
|
|
|
| 76 |
|
| 77 |
with placeholder.container():
|
| 78 |
last_message = message_history[-1]
|
| 79 |
+
if last_message:
|
| 80 |
message(last_message["text"], last_message["is_user"])
|
| 81 |
|
| 82 |
|