GS7776 commited on
Commit
c371bff
·
verified ·
1 Parent(s): 74871d9

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,12 +1,6 @@
1
  ---
2
  title: GradioBasic
3
- emoji: 👁
4
- colorFrom: indigo
5
- colorTo: green
6
  sdk: gradio
7
  sdk_version: 4.31.3
8
- app_file: app.py
9
- pinned: false
10
  ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: GradioBasic
3
+ app_file: gradio1.py
 
 
4
  sdk: gradio
5
  sdk_version: 4.31.3
 
 
6
  ---
 
 
__pycache__/gradio1.cpython-39.pyc ADDED
Binary file (412 Bytes). View file
 
flagged/log.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ name,intensity,output,flag,username,timestamp
2
+ George,3,"Hello, George!!!",,,2024-05-16 16:24:20.307336
gradio1.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr # type: ignore
2
+
3
+
4
+ def greet(name, intensity):
5
+ return "Hello, " + name + "!" * int(intensity)
6
+
7
+
8
+ demo = gr.Interface(
9
+ fn=greet,
10
+ inputs=["text", "slider"],
11
+ outputs=["text"],
12
+ )
13
+
14
+ demo.launch()
15
+ # demo.launch(share=True) # with public URL . # Share your demo with just 1 extra parameter