Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- Areef.jpeg +0 -0
- app.py +2 -2
Areef.jpeg
ADDED
|
app.py
CHANGED
|
@@ -311,7 +311,7 @@ SEND_NOTIFICATION_TOOL: dict = {
|
|
| 311 |
|
| 312 |
def dice_roll() -> int:
|
| 313 |
"""Simulate rolling two six-sided dice (result range: 2–12)."""
|
| 314 |
-
return random.randint(2, 12)
|
| 315 |
|
| 316 |
|
| 317 |
DICE_ROLL_TOOL: dict = {
|
|
@@ -526,11 +526,11 @@ build_rag_index(documents, collection)
|
|
| 526 |
demo = gr.ChatInterface(
|
| 527 |
fn=respond_chatbot,
|
| 528 |
title="Mohammad Areef Penukonda — Digital Twin",
|
|
|
|
| 529 |
description=(
|
| 530 |
"Chat with an AI representation of Mohammad Areef Penukonda. "
|
| 531 |
"Ask about his background, experience, or education."
|
| 532 |
),
|
| 533 |
-
# NOTE: type="messages" removed — only supported in Gradio 4.x+
|
| 534 |
examples=["What's your background?", "Professional Experience"]
|
| 535 |
)
|
| 536 |
|
|
|
|
| 311 |
|
| 312 |
def dice_roll() -> int:
|
| 313 |
"""Simulate rolling two six-sided dice (result range: 2–12)."""
|
| 314 |
+
return random.randint(2, 12)
|
| 315 |
|
| 316 |
|
| 317 |
DICE_ROLL_TOOL: dict = {
|
|
|
|
| 526 |
demo = gr.ChatInterface(
|
| 527 |
fn=respond_chatbot,
|
| 528 |
title="Mohammad Areef Penukonda — Digital Twin",
|
| 529 |
+
chatbot=gr.Chatbot(avatar_images=(None, "Areef.jpeg")),
|
| 530 |
description=(
|
| 531 |
"Chat with an AI representation of Mohammad Areef Penukonda. "
|
| 532 |
"Ask about his background, experience, or education."
|
| 533 |
),
|
|
|
|
| 534 |
examples=["What's your background?", "Professional Experience"]
|
| 535 |
)
|
| 536 |
|