Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def minecraft_command(description):
|
|
17 |
if response.status_code == 200:
|
18 |
return response.json()["choices"][0]["text"].strip()
|
19 |
else:
|
20 |
-
return "Произошла ошибка при отправке
|
21 |
|
22 |
iface = gr.Interface(fn=minecraft_command, inputs="text", outputs="text", title="Minecraft Command Generator")
|
23 |
iface.launch()
|
|
|
17 |
if response.status_code == 200:
|
18 |
return response.json()["choices"][0]["text"].strip()
|
19 |
else:
|
20 |
+
return "Произошла ошибка при отправке запроса."
|
21 |
|
22 |
iface = gr.Interface(fn=minecraft_command, inputs="text", outputs="text", title="Minecraft Command Generator")
|
23 |
iface.launch()
|