Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -149,10 +149,10 @@ class TemporalPredictionSystem:
|
|
| 149 |
# Increment the offset for next iteration to load additional quotes
|
| 150 |
self.quote_offset += 100
|
| 151 |
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
|
| 157 |
# Initialize the system (or reinitialize if desired)
|
| 158 |
self.initialize()
|
|
|
|
| 149 |
# Increment the offset for next iteration to load additional quotes
|
| 150 |
self.quote_offset += 100
|
| 151 |
|
| 152 |
+
except Exception as e:
|
| 153 |
+
print(f"Error fetching quotes data: {e}")
|
| 154 |
+
# Build the Markov chain with default corpus if fetch fails
|
| 155 |
+
self.build_initial_markov_chain()
|
| 156 |
|
| 157 |
# Initialize the system (or reinitialize if desired)
|
| 158 |
self.initialize()
|