Update app.py
Browse files
app.py
CHANGED
@@ -126,8 +126,15 @@ def query_model(question):
|
|
126 |
|
127 |
link = "https://chatgpt.com/"
|
128 |
links=["https://chatgpt.com/","https://www.grammarly.com/","https://www.any.do/","https://scheduler.ai/","https://huggingface.co/spaces/MukBot/MukBot","https://huggingface.co/spaces/CalmConnect/calm-connect","https://chatgpt.com/g/g-3DGi2iLag-scholargpt","https://chatgpt.com/g/g-E7eSRUHy6-travel-guide"]
|
129 |
-
|
130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
|
132 |
#def create_random_link():
|
133 |
#random_link = get_random_link()
|
@@ -209,8 +216,10 @@ with gr.Blocks(theme=theme) as demo:
|
|
209 |
answer = gr.Textbox(label="AI-nswer:", placeholder="Hello, World! \nAsk me anything about AI ML, and helpful tools you may want to use!", interactive=False, lines=10)
|
210 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
211 |
gr.Image("einy.png", container = False, show_share_button = False, show_download_button = False, label="output", show_label=True, elem_id="output_image", scale=0, width=500)
|
212 |
-
|
213 |
-
|
|
|
|
|
214 |
#interface = gr.Interface(fn=create_random_link, inputs=[], outputs="html")
|
215 |
#interface.launch()
|
216 |
|
|
|
126 |
|
127 |
link = "https://chatgpt.com/"
|
128 |
links=["https://chatgpt.com/","https://www.grammarly.com/","https://www.any.do/","https://scheduler.ai/","https://huggingface.co/spaces/MukBot/MukBot","https://huggingface.co/spaces/CalmConnect/calm-connect","https://chatgpt.com/g/g-3DGi2iLag-scholargpt","https://chatgpt.com/g/g-E7eSRUHy6-travel-guide"]
|
129 |
+
link = random.choice(links)
|
130 |
+
|
131 |
+
link_gen ='''
|
132 |
+
# f{link}
|
133 |
+
'''
|
134 |
+
|
135 |
+
#def get_random_link():
|
136 |
+
#link = random.choice(links)
|
137 |
+
#return link
|
138 |
|
139 |
#def create_random_link():
|
140 |
#random_link = get_random_link()
|
|
|
216 |
answer = gr.Textbox(label="AI-nswer:", placeholder="Hello, World! \nAsk me anything about AI ML, and helpful tools you may want to use!", interactive=False, lines=10)
|
217 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
218 |
gr.Image("einy.png", container = False, show_share_button = False, show_download_button = False, label="output", show_label=True, elem_id="output_image", scale=0, width=500)
|
219 |
+
gr.Markdown("Look what Albot found:")
|
220 |
+
gr.Markdown(link_gen)
|
221 |
+
#portal_button = gr.Button("What examples of AI are there?")
|
222 |
+
#portal_button.click(fn=get_random_link, inputs=[], outputs=link)
|
223 |
#interface = gr.Interface(fn=create_random_link, inputs=[], outputs="html")
|
224 |
#interface.launch()
|
225 |
|