Nicolas-Schuhl commited on
Commit
835ee70
1 Parent(s): 3546e99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -8,19 +8,17 @@ from llama_index import ServiceContext
8
  from llama_index.query_engine import RetrieverQueryEngine
9
 
10
 
11
- title = "Gaia Mistral Chat Demo"
12
- description = "Exemple d'assistant avec Gradio et Mistral AI via son API"
13
- placeholder = "Posez moi une question sur l'agriculture"
14
- placeholder_url = "Donner moi une url qui va servir de contexte agricole complémentaire"
15
  placeholder_api_key = "API key"
16
- examples = ["Comment fait on pour produire du maïs ?", "Rédige moi une lettre pour faire un stage dans une exploitation agricole", "Comment reprendre une exploitation agricole ?"]
17
 
18
  query_engine = None
19
 
20
  with gr.Blocks() as demo:
21
 
22
- gr.Markdown(""" ### Welcome to Level 2 Demo
23
- Add an url and your API key at the bottom of the bottom before interacting with the Chat. This demo allows you to interact with a webpage and then ask questions to Mistral APIs. Mistral will answer with the context extracted from the webpage.
24
  """)
25
  chatbot = gr.Chatbot()
26
  msg = gr.Textbox()
 
8
  from llama_index.query_engine import RetrieverQueryEngine
9
 
10
 
11
+ description = "Example of an assistant with Gradio and Mistral AI via its API"
12
+ placeholder = "Ask a question"
13
+ placeholder_url = "Extract text from this url"
 
14
  placeholder_api_key = "API key"
 
15
 
16
  query_engine = None
17
 
18
  with gr.Blocks() as demo:
19
 
20
+ gr.Markdown(""" ### Welcome to Gaia Level 2 Demo
21
+ Add an URL and your API key at the bottom of the interface before interacting with the Chat. This demo allows you to interact with a webpage and then ask questions to Mistral APIs. Mistral will answer with the context extracted from the webpage.
22
  """)
23
  chatbot = gr.Chatbot()
24
  msg = gr.Textbox()