ariefrahmansyah commited on
Commit
bc27dc6
2 Parent(s): 8b4233e b77ca10

Merge pull request #2 from patal-dev/gradio

Browse files
.github/workflows/hub.yml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ sync-to-hub:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ with:
14
+ fetch-depth: 0
15
+ - name: Push to Hugging Face hub
16
+ env:
17
+ HF_USERNAME: ${{ secrets.HF_USERNAME }}
18
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: git push https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/patal-dev/april main
.python-version CHANGED
@@ -1 +1 @@
1
- 3.10.2
 
1
+ 3.9.10
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+
4
+ def greet(name):
5
+ return "Hello " + name + "!!"
6
+
7
+
8
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text")
9
+ iface.launch()
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- jupyterlab==3.3.3
2
  matplotlib==3.5.1
3
  numpy==1.22.3
4
  pandas==1.4.2
 
1
+ gradio==2.9.1
2
  matplotlib==3.5.1
3
  numpy==1.22.3
4
  pandas==1.4.2
requirements_dev.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ black==22.3.0
2
+ jupyterlab==3.3.3