Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,5 +34,5 @@ def answer(message):
|
|
| 34 |
ans = response['choices'][0]['message']['content'] + sources
|
| 35 |
return ans
|
| 36 |
|
| 37 |
-
iface = gr.Interface(fn=answer, inputs="text", outputs="text")
|
| 38 |
iface.launch()
|
|
|
|
| 34 |
ans = response['choices'][0]['message']['content'] + sources
|
| 35 |
return ans
|
| 36 |
|
| 37 |
+
iface = gr.Interface(fn=answer, inputs="text", outputs="text", examples=["When was the declaration of independence signed?", "What year did the United States enter World War I?", "What was considered the peak of tension within the Cold War?"])
|
| 38 |
iface.launch()
|