Spaces:
Runtime error
Runtime error
more emails
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def get_df_from_workbook(sheet_name,
|
|
37 |
url = f'https://docs.google.com/spreadsheets/d/{workbook_id}/gviz/tq?tqx=out:csv&sheet={sheet_name}'
|
38 |
return pd.read_csv(url)
|
39 |
|
40 |
-
|
41 |
text="Hey KD, let's grab dinner after our next game, Steph",
|
42 |
metadata={'from_to': 'Stephen Curry to Kevin Durant',}
|
43 |
)
|
@@ -45,7 +45,28 @@ docEmailSample2 = Document(
|
|
45 |
text="Yo Joker, you were a monster last year, can't wait to play against you in the opener! Draymond",
|
46 |
metadata={'from_to': 'Draymond Green to Nikola Jokic',}
|
47 |
)
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
class AutoRetrieveModel(BaseModel):
|
51 |
query: str = Field(..., description="natural language query string")
|
|
|
37 |
url = f'https://docs.google.com/spreadsheets/d/{workbook_id}/gviz/tq?tqx=out:csv&sheet={sheet_name}'
|
38 |
return pd.read_csv(url)
|
39 |
|
40 |
+
docEmailSample1 = Document(
|
41 |
text="Hey KD, let's grab dinner after our next game, Steph",
|
42 |
metadata={'from_to': 'Stephen Curry to Kevin Durant',}
|
43 |
)
|
|
|
45 |
text="Yo Joker, you were a monster last year, can't wait to play against you in the opener! Draymond",
|
46 |
metadata={'from_to': 'Draymond Green to Nikola Jokic',}
|
47 |
)
|
48 |
+
docEmailSample3 = Document(
|
49 |
+
text="Hey LeBron, you ready for another showdown? Let's see if you can handle the Splash Bros again! π",
|
50 |
+
metadata={'from_to': 'Klay Thompson to LeBron James'}
|
51 |
+
)
|
52 |
+
docEmailSample4 = Document(
|
53 |
+
text="Yo Giannis, you sure you want to come to the Bay? We don't have any deer to hunt here! π",
|
54 |
+
metadata={'from_to': 'Draymond Green to Giannis Antetokounmpo'}
|
55 |
+
)
|
56 |
+
docEmailSample5 = Document(
|
57 |
+
text="Hey Luka, you're a beast on the court. Let's swap jerseys after our game and show some love! πͺ",
|
58 |
+
metadata={'from_to': 'Andrew Wiggins to Luka DonΔiΔ'}
|
59 |
+
)
|
60 |
+
docEmailSample5 = Document(
|
61 |
+
text="Devin Booker, we could use your scoring in the Bay. Think about it, bro! π",
|
62 |
+
metadata={'from_to': 'Klay Thompson to Devin Booker'}
|
63 |
+
)
|
64 |
+
docEmailSample6 = Document(
|
65 |
+
text="Tatum, you've got the skills. Let's team up and bring some championships to the Warriors! π",
|
66 |
+
metadata={'from_to': 'Draymond Green to Jayson Tatum'}
|
67 |
+
)
|
68 |
+
docAdditionalSamples = [docEmailSample1, docEmailSample2, docEmailSample3,
|
69 |
+
docEmailSample4, docEmailSample5, docEmailSample6]
|
70 |
|
71 |
class AutoRetrieveModel(BaseModel):
|
72 |
query: str = Field(..., description="natural language query string")
|