Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,9 @@ import gradio as gr
|
|
| 5 |
api_key = "sk-6Ng7YDAkl0D5z20vAh7tPkmWn5hCTcZGIcl_wRiQ5NQ" # replace with your actual key
|
| 6 |
url = "http://localhost:7860/api/v1/run/30d9ce86-194f-44ba-a15a-f822c3ac4f57" # LangFlow endpoint
|
| 7 |
|
|
|
|
|
|
|
|
|
|
| 8 |
def query_langflow(user_input):
|
| 9 |
payload = {
|
| 10 |
"output_type": "chat",
|
|
@@ -47,4 +50,4 @@ with gr.Blocks() as demo:
|
|
| 47 |
msg.submit(chat, [msg, chatbot], [chatbot, msg])
|
| 48 |
|
| 49 |
# 🚀 This will show BOTH: local URL + public .gradio.live URL
|
| 50 |
-
demo.launch(server_name="http://127.0.0.1
|
|
|
|
| 5 |
api_key = "sk-6Ng7YDAkl0D5z20vAh7tPkmWn5hCTcZGIcl_wRiQ5NQ" # replace with your actual key
|
| 6 |
url = "http://localhost:7860/api/v1/run/30d9ce86-194f-44ba-a15a-f822c3ac4f57" # LangFlow endpoint
|
| 7 |
|
| 8 |
+
GRADIO_SERVER_PORT=7865
|
| 9 |
+
|
| 10 |
+
|
| 11 |
def query_langflow(user_input):
|
| 12 |
payload = {
|
| 13 |
"output_type": "chat",
|
|
|
|
| 50 |
msg.submit(chat, [msg, chatbot], [chatbot, msg])
|
| 51 |
|
| 52 |
# 🚀 This will show BOTH: local URL + public .gradio.live URL
|
| 53 |
+
demo.launch(server_name="http://127.0.0.1", server_port=7865, share=True)
|