Erfan11 commited on
Commit
40874f0
1 Parent(s): 9804d99

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +19 -0
  2. requirements.txt +0 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # Define your AI model or function here
4
+ def my_ai_model(input_text):
5
+ # Your AI logic here (for now it just repeats the input)
6
+ result = f"You said: {input_text}"
7
+ return result
8
+
9
+ # Create a Gradio interface
10
+ interface = gr.Interface(
11
+ fn=my_ai_model,
12
+ inputs="text",
13
+ outputs="text",
14
+ title="My Simple AI",
15
+ description="This AI responds to your input!"
16
+ )
17
+
18
+ # Launch the interface
19
+ interface.launch()
requirements.txt CHANGED
The diff for this file is too large to render. See raw diff