mgupta70 commited on
Commit
64fe944
1 Parent(s): f77ec6f

simple_test

Browse files
Files changed (1) hide show
  1. app.py +24 -18
app.py CHANGED
@@ -2,7 +2,7 @@
2
  #import os
3
  #from llama_index.node_parser import SimpleNodeParser
4
  #from llama_index import StorageContext, load_index_from_storage
5
- import gradio as gr
6
  #import openai
7
 
8
  # os.environ['OPENAI_API_KEY'] = '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'
@@ -26,24 +26,30 @@ import gradio as gr
26
  # return final_response
27
 
28
 
29
- def get_model_reply_no_prev_context(question):
30
- final_response = question
31
- return final_response
 
 
 
 
 
 
32
 
33
- title = "Knowledge Center at Penta Building Group"
34
- description = """
35
- The program is trained to answer questions based on the documentation of 'Lessons Learned' from previous projects!
36
 
37
- """
 
 
 
 
 
 
 
 
38
 
39
- article = "Your feedback matters!If you like it, contact me at mgupta70@asu.edu"
 
 
40
 
41
- gr.Interface(
42
- fn=get_model_reply_no_prev_context,
43
- inputs="textbox",
44
- outputs="text",
45
- title=title,
46
- description=description,
47
- article=article,
48
- examples=[["Which code is to be used while planning a pedestrian walkway?"], ["What is AHJ?"]], live=True
49
- ).launch(share = True)
 
2
  #import os
3
  #from llama_index.node_parser import SimpleNodeParser
4
  #from llama_index import StorageContext, load_index_from_storage
5
+ # import gradio as gr
6
  #import openai
7
 
8
  # os.environ['OPENAI_API_KEY'] = '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'
 
26
  # return final_response
27
 
28
 
29
+ # def get_model_reply_no_prev_context(question):
30
+ # final_response = question
31
+ # return final_response
32
+
33
+ # title = "Knowledge Center at Penta Building Group"
34
+ # description = """
35
+ # The program is trained to answer questions based on the documentation of 'Lessons Learned' from previous projects!
36
+
37
+ # """
38
 
39
+ # article = "Your feedback matters!If you like it, contact me at mgupta70@asu.edu"
 
 
40
 
41
+ # gr.Interface(
42
+ # fn=get_model_reply_no_prev_context,
43
+ # inputs="textbox",
44
+ # outputs="text",
45
+ # title=title,
46
+ # description=description,
47
+ # article=article,
48
+ # examples=[["Which code is to be used while planning a pedestrian walkway?"], ["What is AHJ?"]], live=True
49
+ # ).launch()
50
 
51
+ import gradio as gr
52
+ def sketch_recognition(img):
53
+ pass# Implement your sketch recognition model here...
54
 
55
+ gr.Interface(fn=sketch_recognition, inputs="sketchpad", outputs="label").launch()