Spaces:
Sleeping
Sleeping
Mengmeng Liu
commited on
Commit
·
b394215
1
Parent(s):
c54b3b0
initial commit for testing api
Browse files- app.py +12 -0
- flagged/log.csv +2 -0
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio
|
2 |
+
|
3 |
+
def my_inference_function(name):
|
4 |
+
return "Hello " + name + "!"
|
5 |
+
|
6 |
+
gradio_interface = gradio.Interface(fn = my_inference_function,
|
7 |
+
inputs = "text",
|
8 |
+
outputs = "text"
|
9 |
+
)
|
10 |
+
|
11 |
+
gradio_interface.launch()
|
12 |
+
|
flagged/log.csv
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
name,output,flag,username,timestamp
|
2 |
+
wow,Hello wow!,,,2023-07-19 09:38:56.450628
|