sabretoothedhugs commited on
Commit
c4f4606
1 Parent(s): bb047fe

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +3 -9
  2. __pycache__/app.cpython-311.pyc +0 -0
  3. app.py +16 -0
  4. flagged/log.csv +2 -0
  5. requirements.txt +2 -0
README.md CHANGED
@@ -1,12 +1,6 @@
1
  ---
2
- title: Sample Gradio Deploy
3
- emoji: 🌖
4
- colorFrom: red
5
- colorTo: yellow
6
- sdk: gradio
7
- sdk_version: 4.37.1
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: sample-gradio-deploy
 
 
 
 
 
3
  app_file: app.py
4
+ sdk: gradio
5
+ sdk_version: 4.36.1
6
  ---
 
 
__pycache__/app.cpython-311.pyc ADDED
Binary file (747 Bytes). View file
 
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import torch
3
+ import pandas as pd
4
+
5
+
6
+ def greet(name, intensity):
7
+ return "Hello, " + name + "!" * int(intensity) + str(pd.isna(1)) + str(torch.cuda.is_available())
8
+
9
+ demo = gr.Interface(
10
+ fn=greet,
11
+ inputs=["text", "slider"],
12
+ outputs=["text"],
13
+ theme="soft"
14
+ )
15
+
16
+ demo.launch()
flagged/log.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ name,intensity,output,flag,username,timestamp
2
+ sssdwds,0,,,,2024-06-25 19:15:29.106036
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ torch
2
+ pandas