Spaces:
Sleeping
Sleeping
fix for api
Browse files
a.py
CHANGED
@@ -3,7 +3,7 @@ from gradio_client import Client
|
|
3 |
client = Client("https://huggingface.co/spaces/wiklif/mixtral-api")
|
4 |
|
5 |
# Przykładowe dane wejściowe
|
6 |
-
prompt = "
|
7 |
history = []
|
8 |
|
9 |
response = client.predict(prompt, history)
|
|
|
3 |
client = Client("https://huggingface.co/spaces/wiklif/mixtral-api")
|
4 |
|
5 |
# Przykładowe dane wejściowe
|
6 |
+
prompt = "Wymień 10 stanów USA"
|
7 |
history = []
|
8 |
|
9 |
response = client.predict(prompt, history)
|
app.py
CHANGED
@@ -53,4 +53,4 @@ interface = gr.ChatInterface(
|
|
53 |
clear_btn=None
|
54 |
)
|
55 |
|
56 |
-
interface.launch()
|
|
|
53 |
clear_btn=None
|
54 |
)
|
55 |
|
56 |
+
interface.launch(show_api=True)
|