AEUPH commited on
Commit
65995b6
·
verified ·
1 Parent(s): a1e3f35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -8,6 +8,18 @@ from urllib.parse import unquote
8
  from flask import Flask, request, jsonify
9
  from gradio_client import Client
10
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  app = Flask(__name__)
12
  client = Client("https://aeuph-hive-menu.hf.space/")
13
 
 
8
  from flask import Flask, request, jsonify
9
  from gradio_client import Client
10
 
11
+ # Initialize the client with your Gradio app's URL
12
+ client = Client("https://aeuph-hive-menu.hf.space/")
13
+
14
+ # Use the predict function to send data to the 'Second Life Input' Textbox component
15
+ # Assuming fn_index=0 targets the correct interface function
16
+ result = client.predict(
17
+ "Howdy!", # The message you're sending to the Gradio app
18
+ fn_index=0 # Target the first (or desired) function in your Gradio app
19
+ )
20
+
21
+ print(result) # Display the result received from the Gradio app
22
+
23
  app = Flask(__name__)
24
  client = Client("https://aeuph-hive-menu.hf.space/")
25