Ntama2437 commited on
Commit
7113e9e
·
verified ·
1 Parent(s): 2f3b9c6

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. .gitignore +6 -0
  2. README.md +3 -9
  3. app.py +10 -0
  4. requirements.txt +4 -0
.gitignore ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Ignore the file containing secrets
2
+ login_test.py
3
+
4
+ # Ignore Python cache files and folders
5
+ __pycache__/
6
+ *.pyc
README.md CHANGED
@@ -1,12 +1,6 @@
1
  ---
2
- title: Hugging App
3
- emoji: 🦀
4
- colorFrom: green
5
- colorTo: green
6
- sdk: gradio
7
- sdk_version: 5.49.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: Hugging_App
 
 
 
 
 
3
  app_file: app.py
4
+ sdk: gradio
5
+ sdk_version: 4.44.1
6
  ---
 
 
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ def greet(name):
5
+ return "Hello " + name + "!"
6
+
7
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text")
8
+
9
+ if __name__ == "__main__":
10
+ iface.launch(share=True)
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ gradio
2
+ transformers
3
+ torch
4
+ brotli