fccoelho commited on
Commit
0a01b14
·
1 Parent(s): 335ca5d

Added aiwrite app

Browse files
Files changed (2) hide show
  1. app.py +5 -3
  2. pyproject.toml +5 -1
app.py CHANGED
@@ -1,10 +1,11 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
 
3
 
4
  """
5
- For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
6
  """
7
- client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
8
 
9
 
10
  def respond(
@@ -61,4 +62,5 @@ demo = gr.ChatInterface(
61
 
62
 
63
  if __name__ == "__main__":
64
- demo.launch()
 
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
+ from aiwrite.gradgui import app
4
 
5
  """
6
+ For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
7
  """
8
+ # client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
9
 
10
 
11
  def respond(
 
62
 
63
 
64
  if __name__ == "__main__":
65
+ # demo.launch()
66
+ app.main()
pyproject.toml CHANGED
@@ -5,6 +5,10 @@ description = "Add your description here"
5
  readme = "README.md"
6
  requires-python = ">=3.12"
7
  dependencies = [
 
8
  "gradio>=5.14.0",
9
- "huggingface-hub==0.25.2",
10
  ]
 
 
 
 
5
  readme = "README.md"
6
  requires-python = ">=3.12"
7
  dependencies = [
8
+ "aiwrite",
9
  "gradio>=5.14.0",
10
+ "huggingface-hub>=0.25.2", # 0.25.2
11
  ]
12
+
13
+ [tool.uv.sources]
14
+ aiwrite = { git = "https://github.com/Deeplearn-PeD/aiwrite" }