update cogsgpt
Browse files- app.py +2 -4
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -83,7 +83,7 @@ class Client:
|
|
| 83 |
audio_url = self._download_media(audio_url)
|
| 84 |
chatbot += [(None, (audio_url,))]
|
| 85 |
|
| 86 |
-
|
| 87 |
|
| 88 |
return chatbot
|
| 89 |
|
|
@@ -210,14 +210,12 @@ with gr.Blocks(css=css) as demo:
|
|
| 210 |
# CV
|
| 211 |
"What can I make with these ingredients? ./tests/examples/ingredients.png",
|
| 212 |
"Extract the text from the image: ./tests/examples/handwritten-note.jpg",
|
| 213 |
-
"Select images of dog from the list: [./tests/examples/animal-1.jpg, ./tests/examples/animal-2.jpg, ./tests/examples/animal-3.jpg]",
|
| 214 |
-
"Remove the background of the image: ./tests/examples/wedding.png",
|
| 215 |
# Speech
|
| 216 |
"Convert the text 'CogsGPT is a multi-modal LLM integrated ChatGPT with Azure Cognitive Service' into speech.",
|
| 217 |
"Extract the content of audio: ./tests/examples/cogsgpt.wav",
|
| 218 |
# Form
|
| 219 |
"List all the items and their prices from the receipt: ./tests/examples/receipt.png",
|
| 220 |
-
"
|
| 221 |
# Complex task
|
| 222 |
"Summarize the content in the audio file: ./tests/examples/voa-1min-news.wav, and translate it into Chinese. Then read it out.",
|
| 223 |
],
|
|
|
|
| 83 |
audio_url = self._download_media(audio_url)
|
| 84 |
chatbot += [(None, (audio_url,))]
|
| 85 |
|
| 86 |
+
self._client.save_context(self._input, self._response)
|
| 87 |
|
| 88 |
return chatbot
|
| 89 |
|
|
|
|
| 210 |
# CV
|
| 211 |
"What can I make with these ingredients? ./tests/examples/ingredients.png",
|
| 212 |
"Extract the text from the image: ./tests/examples/handwritten-note.jpg",
|
|
|
|
|
|
|
| 213 |
# Speech
|
| 214 |
"Convert the text 'CogsGPT is a multi-modal LLM integrated ChatGPT with Azure Cognitive Service' into speech.",
|
| 215 |
"Extract the content of audio: ./tests/examples/cogsgpt.wav",
|
| 216 |
# Form
|
| 217 |
"List all the items and their prices from the receipt: ./tests/examples/receipt.png",
|
| 218 |
+
"List all the flights with China Eastern airline in the flight schedule table from the file: ./tests/examples/flight-schedule.png.",
|
| 219 |
# Complex task
|
| 220 |
"Summarize the content in the audio file: ./tests/examples/voa-1min-news.wav, and translate it into Chinese. Then read it out.",
|
| 221 |
],
|
requirements.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
cogsgpt==
|
|
|
|
| 1 |
+
cogsgpt==1.0.1
|