zting commited on
Commit
d520204
1 Parent(s): 377f223

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -22
app.py DELETED
@@ -1,22 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
- import gradio as gr
5
- import langChain_test
6
-
7
- def image_to_text(image_path,question):
8
- return langChain_test.imageAnalyse(image_path,question)
9
-
10
-
11
- with gr.Blocks() as demo:
12
- image_path = gr.Image(type="filepath",label="请选择一张图片")
13
- question = gr.Textbox(label="输入您的问题",lines=2)
14
- output = gr.Textbox(label="输出答案",lines=2,placeholder="提交后将自动输出答案")
15
- greet_btn = gr.Button("提交",variant="primary")
16
- greet_btn.click(fn=image_to_text, inputs=[image_path,question], outputs=output, api_name="image_to_text")
17
-
18
-
19
-
20
- demo.launch()
21
-
22
- #demo.launch(share=True)