hadadrjt commited on
Commit
ff25271
·
1 Parent(s): ab7a901

SearchGPT: Address the Gradio-related issue.

Browse files

* Duplicate type="messages" parameter used to define history in the OpenAI style.

https://www.gradio.app/docs/gradio/chatinterface#param-chatinterface-type

- If one of them is missing or not set, the same logs will appear twice.

- This is happening again now, even though previously setting just one of them worked fine.

```
/usr/local/lib/python3.13/site-packages/gradio/chat_interface.py:328: UserWarning: The gr.ChatInterface was not provided with a type, so the type of the gr.Chatbot, 'messages', will be used.
```

* Add more examples.

Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -17,11 +17,15 @@ with gr.Blocks(fill_height=True, fill_width=True) as app:
17
  show_copy_button=True,
18
  scale=1
19
  ),
 
20
  examples=[
21
  ["What is UltimaX Intelligence"],
22
  ["https://wikipedia.org/wiki/Artificial_intelligence Read and summarize that"],
23
  ["What's the latest AI development in 2025?"],
24
- ["OpenAI GPT-5 vs DeepSeek V3.1"]
 
 
 
25
  ],
26
  cache_examples=False,
27
  show_api=False,
 
17
  show_copy_button=True,
18
  scale=1
19
  ),
20
+ type="messages", # 2025-09-10: Shut up!
21
  examples=[
22
  ["What is UltimaX Intelligence"],
23
  ["https://wikipedia.org/wiki/Artificial_intelligence Read and summarize that"],
24
  ["What's the latest AI development in 2025?"],
25
+ ["OpenAI GPT-5 vs DeepSeek V3.1"],
26
+ ["Find the source link for the GPT-OSS model"],
27
+ ["https://huggingface.co/papers Extract the most popular papers"],
28
+ ["How to run Gemma 3 (270M) on CPU only"]
29
  ],
30
  cache_examples=False,
31
  show_api=False,