TejAndrewsACC commited on
Commit
ad181ed
·
verified ·
1 Parent(s): b2d58fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from gradio_client import Client
2
 
3
  # Initialize the client
@@ -35,7 +36,11 @@ def get_response(user_input):
35
  except Exception as e:
36
  return f"Error: {e}"
37
 
38
- # Example of how to call the function:
39
- # user_input = "Hello, Z3ta!"
40
- # response = get_response(user_input)
41
- # print(response)
 
 
 
 
 
1
+ import gradio as gr
2
  from gradio_client import Client
3
 
4
  # Initialize the client
 
36
  except Exception as e:
37
  return f"Error: {e}"
38
 
39
+ # Gradio interface
40
+ iface = gr.Interface(fn=get_response,
41
+ inputs="text",
42
+ outputs="text",
43
+ live=True)
44
+
45
+ # Launch the interface
46
+ iface.launch()