wiklif commited on
Commit
1b4f1a9
·
1 Parent(s): 0669200

fix for api

Browse files
Files changed (2) hide show
  1. a.py +1 -1
  2. app.py +1 -1
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 = "Jak się masz?"
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)