Spaces:
Sleeping
Sleeping
Commit ·
5ce84c7
1
Parent(s): 134b302
fix: defensive imports, remove bad import from reward_model.loss
Browse files
app.py
CHANGED
|
@@ -6,7 +6,11 @@ Author: Aravind Kumar Nalukurthi
|
|
| 6 |
import gradio as gr
|
| 7 |
import plotly.graph_objects as go
|
| 8 |
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
CSS = """
|
| 12 |
* { box-sizing: border-box; }
|
|
|
|
| 6 |
import gradio as gr
|
| 7 |
import plotly.graph_objects as go
|
| 8 |
|
| 9 |
+
try:
|
| 10 |
+
from speculative.decoder import SpeculativeDecoder, AutoregressiveBaseline
|
| 11 |
+
except Exception:
|
| 12 |
+
SpeculativeDecoder = None
|
| 13 |
+
AutoregressiveBaseline = None
|
| 14 |
|
| 15 |
CSS = """
|
| 16 |
* { box-sizing: border-box; }
|