Darkweb007 commited on
Commit
5ce84c7
·
1 Parent(s): 134b302

fix: defensive imports, remove bad import from reward_model.loss

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- from speculative.decoder import SpeculativeDecoder, AutoregressiveBaseline, get_precomputed_benchmark_results
 
 
 
 
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; }