Clément Simon commited on
Commit
754727f
·
1 Parent(s): 2c86bdf

Update app.py and .gitignore

Browse files
Files changed (2) hide show
  1. .gitignore +2 -1
  2. app.py +11 -5
.gitignore CHANGED
@@ -1 +1,2 @@
1
- .env
 
 
1
+ .env
2
+ .venv
app.py CHANGED
@@ -26,11 +26,17 @@ def run_mistral(user_message, model="mistral-medium"):
26
  chat_response = client.chat(model=model, messages=messages)
27
  return chat_response.choices[0].message.content
28
 
29
- app = gr.Interface(fn=answer_question,
30
- inputs=gr.inputs.Textbox(lines=2, placeholder="Ask a question..."),
31
- outputs="text",
32
- title="Your Assistant",
33
- description="Ask any question, and I'll try to provide an informative answer.")
 
 
 
 
 
 
34
 
35
  if __name__ == "__main__":
36
  app.launch(share=True) # Set `share=True` to create a public link
 
26
  chat_response = client.chat(model=model, messages=messages)
27
  return chat_response.choices[0].message.content
28
 
29
+ app = gr.Interface(
30
+ fn=chat_with_mistral,
31
+ inputs=gr.Textbox(lines=2, placeholder=placeholder),
32
+ outputs="text",
33
+ title=title,
34
+ description=description,
35
+ examples=examples
36
+ )
37
+
38
+ # Create a map using the library folium
39
+
40
 
41
  if __name__ == "__main__":
42
  app.launch(share=True) # Set `share=True` to create a public link