whiskyboy commited on
Commit
b34543e
·
1 Parent(s): c1d20db

update cogsgpt

Browse files
Files changed (2) hide show
  1. app.py +2 -4
  2. 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
- # self._client.save_context(self._input, self._response)
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
- "Extract the flight schedule table from the file: ./tests/examples/flight-schedule.png, and list all the flights with China Eastern airline.",
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==0.0.5
 
1
+ cogsgpt==1.0.1