Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ recommendations = '''
|
|
45 |
<h3 align="left">Recommendations:</h3>
|
46 |
|
47 |
<p><strong><em><a href="https://sayak.dev">Sayak Paul</a></em></strong><br>
|
48 |
-
Machine Learning Engineer at <a href="https://hf.co/">Hugging Face</a>,
|
49 |
|
50 |
<blockquote>
|
51 |
<p>Rishiraj and I worked together for a Kaggle Competition. I had already known Rishiraj and all his achievements by that time as he is my college junior. But after working together I got to witness how humble and how intelligent Rishiraj is.</p>
|
@@ -63,8 +63,6 @@ def show_info(section):
|
|
63 |
return communities
|
64 |
elif section == "Recommendations":
|
65 |
return recommendations
|
66 |
-
elif section == "Conferences":
|
67 |
-
return "Conferences attended by Rishiraj..."
|
68 |
else:
|
69 |
return "Select a section to display information."
|
70 |
|
@@ -81,7 +79,7 @@ with gr.Blocks() as app:
|
|
81 |
gr.Image("profile.png")
|
82 |
|
83 |
with gr.Row():
|
84 |
-
section_dropdown = gr.Dropdown(["Experiences", "Communities", "Recommendations"
|
85 |
info_display = gr.HTML()
|
86 |
|
87 |
section_dropdown.change(show_info, inputs=section_dropdown, outputs=info_display)
|
@@ -178,5 +176,14 @@ llm = gr.ChatInterface(
|
|
178 |
concurrency_limit=20,
|
179 |
)
|
180 |
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
demo.launch()
|
|
|
45 |
<h3 align="left">Recommendations:</h3>
|
46 |
|
47 |
<p><strong><em><a href="https://sayak.dev">Sayak Paul</a></em></strong><br>
|
48 |
+
Machine Learning Engineer at <a href="https://hf.co/">Hugging Face</a>, Google Developer Expert in ML, GSoC Mentor at TensorFlow</p>
|
49 |
|
50 |
<blockquote>
|
51 |
<p>Rishiraj and I worked together for a Kaggle Competition. I had already known Rishiraj and all his achievements by that time as he is my college junior. But after working together I got to witness how humble and how intelligent Rishiraj is.</p>
|
|
|
63 |
return communities
|
64 |
elif section == "Recommendations":
|
65 |
return recommendations
|
|
|
|
|
66 |
else:
|
67 |
return "Select a section to display information."
|
68 |
|
|
|
79 |
gr.Image("profile.png")
|
80 |
|
81 |
with gr.Row():
|
82 |
+
section_dropdown = gr.Dropdown(["Experiences", "Communities", "Recommendations"], label="Select Information to Display")
|
83 |
info_display = gr.HTML()
|
84 |
|
85 |
section_dropdown.change(show_info, inputs=section_dropdown, outputs=info_display)
|
|
|
176 |
concurrency_limit=20,
|
177 |
)
|
178 |
|
179 |
+
# Creating Gradio Interface
|
180 |
+
with gr.Blocks() as talks:
|
181 |
+
with gr.Row():
|
182 |
+
with gr.Column():
|
183 |
+
gr.Markdown("# Hi 👋, I'm Rishiraj Acharya (ঋষিরাজ আচার্য্য)")
|
184 |
+
|
185 |
+
with gr.Row():
|
186 |
+
gr.HTML()
|
187 |
+
|
188 |
+
demo = gr.TabbedInterface([app, llm, talks], ["About", "Chat", "Talks"])
|
189 |
demo.launch()
|