Ubuntu
commited on
Commit
·
6929c27
1
Parent(s):
f96be93
Initialization of App
Browse files- app.py +7 -0
- poetry.lock +0 -0
- pyproject.toml +30 -0
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()
|
poetry.lock
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pyproject.toml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[tool.poetry]
|
2 |
+
name = "genai"
|
3 |
+
version = "0.1.0"
|
4 |
+
description = ""
|
5 |
+
authors = ["Samuel"]
|
6 |
+
readme = "README.md"
|
7 |
+
|
8 |
+
[tool.poetry.dependencies]
|
9 |
+
python = "^3.10"
|
10 |
+
torch = {version = "^2.2.1+cu118", source = "pytorch"}
|
11 |
+
torchvision = {version = "^0.17.1+cu118", source = "pytorch"}
|
12 |
+
torchaudio = {version = "^2.2.1+cu118", source = "pytorch"}
|
13 |
+
transformers = "^4.38.1"
|
14 |
+
langchain = "^0.1.9"
|
15 |
+
gradio = "^4.19.2"
|
16 |
+
|
17 |
+
|
18 |
+
[[tool.poetry.source]]
|
19 |
+
name = "pytorch"
|
20 |
+
url = "https://download.pytorch.org/whl/cu118"
|
21 |
+
priority = "explicit"
|
22 |
+
|
23 |
+
|
24 |
+
[tool.poetry.group.dev.dependencies]
|
25 |
+
ruff = "^0.2.2"
|
26 |
+
pytest = "^8.0.1"
|
27 |
+
|
28 |
+
[build-system]
|
29 |
+
requires = ["poetry-core"]
|
30 |
+
build-backend = "poetry.core.masonry.api"
|