Spaces:
Paused
Paused
Clément Simon
commited on
Commit
·
754727f
1
Parent(s):
2c86bdf
Update app.py and .gitignore
Browse files- .gitignore +2 -1
- 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(
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|