Update app.py
Browse files
app.py
CHANGED
@@ -34,20 +34,20 @@ title = "Knowledge Center at Penta Building Group"
|
|
34 |
description = """The program is trained to answer questions based on the documentation of 'Lessons Learned' from previous projects!"""
|
35 |
article = "Your feedback matters!If you like it, contact us at mgupta70@asu.edu"
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
|
47 |
import gradio as gr
|
48 |
-
def sketch_recognition(img):
|
49 |
-
|
50 |
|
51 |
-
gr.Interface(fn=sketch_recognition, inputs="sketchpad", outputs="label", title=title,
|
52 |
-
|
53 |
-
|
|
|
34 |
description = """The program is trained to answer questions based on the documentation of 'Lessons Learned' from previous projects!"""
|
35 |
article = "Your feedback matters!If you like it, contact us at mgupta70@asu.edu"
|
36 |
|
37 |
+
gr.Interface(
|
38 |
+
fn=get_model_reply_no_prev_context,
|
39 |
+
inputs="textbox",
|
40 |
+
outputs="text",
|
41 |
+
title=title,
|
42 |
+
description=description,
|
43 |
+
article=article,
|
44 |
+
examples=[["Which code is to be used while planning a pedestrian walkway?"], ["What is AHJ?"]]
|
45 |
+
).launch()
|
46 |
|
47 |
import gradio as gr
|
48 |
+
# def sketch_recognition(img):
|
49 |
+
# pass# Implement your sketch recognition model here...
|
50 |
|
51 |
+
# gr.Interface(fn=sketch_recognition, inputs="sketchpad", outputs="label", title=title,
|
52 |
+
# description=description,
|
53 |
+
# article=article,).launch()
|