Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse files- README.md +1 -7
- __pycache__/gradio1.cpython-39.pyc +0 -0
- flagged/log.csv +2 -0
- gradio1.py +15 -0
README.md
CHANGED
|
@@ -1,12 +1,6 @@
|
|
| 1 |
---
|
| 2 |
title: GradioBasic
|
| 3 |
-
|
| 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
|