Update app.py
Browse files
app.py
CHANGED
@@ -17,27 +17,21 @@ def gr_ch_if(user_input: str, history):
|
|
17 |
with gr.Blocks() as demo:
|
18 |
gr.ChatInterface(
|
19 |
fn=gr_ch_if,
|
20 |
-
# type="messages",
|
21 |
title="Use Gradio to Run RAG on the previous R/Gov Talks - Chat Interface 1",
|
22 |
)
|
23 |
|
24 |
# Add the static markdown at the bottom
|
25 |
gr.Markdown(
|
26 |
-
"""
|
27 |
-
This Gradio app was created for Alan Feder's [talk at the 2024 R/Gov Conference](https://rstats.ai/gov.html). \n\n The Github repository that houses all the code is [here](https://github.com/AlanFeder/rgov-2024) -- feel free to fork it and use it on your own!
|
28 |
-
"""
|
29 |
)
|
30 |
gr.Markdown("***")
|
31 |
gr.Markdown("### Contact me!")
|
32 |
gr.Image("AJF_Headshot.jpg", width=60)
|
33 |
gr.Markdown(
|
34 |
-
"""
|
35 |
-
[Email](mailto:[email protected]) | [Website](https://www.alanfeder.com/) | [LinkedIn](https://www.linkedin.com/in/alanfeder/) | [GitHub](https://github.com/AlanFeder)
|
36 |
-
"""
|
37 |
)
|
38 |
|
39 |
if __name__ == "__main__":
|
40 |
demo.launch(
|
41 |
-
share=True,
|
42 |
favicon_path="https://raw.githubusercontent.com/AlanFeder/rgov-2024/refs/heads/main/favicon_io/favicon.ico",
|
43 |
)
|
|
|
17 |
with gr.Blocks() as demo:
|
18 |
gr.ChatInterface(
|
19 |
fn=gr_ch_if,
|
|
|
20 |
title="Use Gradio to Run RAG on the previous R/Gov Talks - Chat Interface 1",
|
21 |
)
|
22 |
|
23 |
# Add the static markdown at the bottom
|
24 |
gr.Markdown(
|
25 |
+
"""This Gradio app was created for Alan Feder's [talk at the 2024 R/Gov Conference](https://rstats.ai/gov.html). \n\n The Github repository that houses all the code is [here](https://github.com/AlanFeder/rgov-2024) -- feel free to fork it and use it on your own!"""
|
|
|
|
|
26 |
)
|
27 |
gr.Markdown("***")
|
28 |
gr.Markdown("### Contact me!")
|
29 |
gr.Image("AJF_Headshot.jpg", width=60)
|
30 |
gr.Markdown(
|
31 |
+
"""[Email](mailto:[email protected]) | [Website](https://www.alanfeder.com/) | [LinkedIn](https://www.linkedin.com/in/alanfeder/) | [GitHub](https://github.com/AlanFeder)"""
|
|
|
|
|
32 |
)
|
33 |
|
34 |
if __name__ == "__main__":
|
35 |
demo.launch(
|
|
|
36 |
favicon_path="https://raw.githubusercontent.com/AlanFeder/rgov-2024/refs/heads/main/favicon_io/favicon.ico",
|
37 |
)
|