hiert commited on
Commit
b379fbc
1 Parent(s): e768845

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -1,8 +1,12 @@
1
- import streamlit as st
2
- # Import additional required libraries
3
- st.title("Your Friendly Chatbot")
4
- user_input = st.text_input("What would you like to ask?")
5
- if st.button("Submit"):
6
- # Here's where the chatbot's response will go
7
- if st.button("Submit"):
8
- st.write(f"Chatbot: You mentioned, '{user_input}'")
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(name, intensity):
4
+ return "Hello " * intensity + name + "!"
5
+
6
+ demo = gr.Interface(
7
+ fn=greet,
8
+ inputs=["text", "slider"],
9
+ outputs=["text"],
10
+ )
11
+
12
+ demo.launch()