Imvikram99
commited on
Commit
•
8c810e3
1
Parent(s):
0ffe8e2
firs
Browse files- .history/app_20240217160524.py +0 -0
- .history/app_20240217160538.py +7 -0
- .history/app_20240217160539.py +7 -0
- .lh/.lhignore +6 -0
- .lh/app.py.json +18 -0
- app.py +7 -0
- requirements.txt +0 -0
.history/app_20240217160524.py
ADDED
File without changes
|
.history/app_20240217160538.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def greet(name):
|
4 |
+
return "Hello " + name + "!!"
|
5 |
+
|
6 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
+
iface.launch()
|
.history/app_20240217160539.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def greet(name):
|
4 |
+
return "Hello " + name + "!!"
|
5 |
+
|
6 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
+
iface.launch()
|
.lh/.lhignore
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# list file to not track by the local-history extension. comment line starts with a '#' character
|
2 |
+
# each line describe a regular expression pattern (search for 'Javascript regex')
|
3 |
+
# it will relate to the workspace directory root. for example:
|
4 |
+
# '.*\.txt' ignores any file with 'txt' extension
|
5 |
+
# '/test/.*' ignores all the files under the 'test' directory
|
6 |
+
# '.*/test/.*' ignores all the files under any 'test' directory (even under sub-folders)
|
.lh/app.py.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"sourceFile": "app.py",
|
3 |
+
"activeCommit": 0,
|
4 |
+
"commits": [
|
5 |
+
{
|
6 |
+
"activePatchIndex": 0,
|
7 |
+
"patches": [
|
8 |
+
{
|
9 |
+
"date": 1708166138917,
|
10 |
+
"content": "Index: \n===================================================================\n--- \n+++ \n"
|
11 |
+
}
|
12 |
+
],
|
13 |
+
"date": 1708166138917,
|
14 |
+
"name": "Commit-0",
|
15 |
+
"content": "import gradio as gr\n\ndef greet(name):\n return \"Hello \" + name + \"!!\"\n\niface = gr.Interface(fn=greet, inputs=\"text\", outputs=\"text\")\niface.launch()"
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
app.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def greet(name):
|
4 |
+
return "Hello " + name + "!!"
|
5 |
+
|
6 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
+
iface.launch()
|
requirements.txt
ADDED
File without changes
|